package com.reran.spring.study.homework.h02;

import com.reran.spring.study.homework.h02.config.BeanConfig;
import com.reran.spring.study.homework.h02.model.Student;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @description:
 * @author: WangSiTeng
 * @date: 2021/12/7
 */
public class AnnotationApplication3 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(BeanConfig.class);

        Student bean01 = (Student) context.getBean("Bean01");
        System.out.println(bean01);
    }
}
